#define _CRT_SECURE_NO_WARNINGS 2
#include<iostream>
#include<stdlib.h>
#include<windows.h>
#include<time.h>
#include<exception>
using namespace std;

void Exception() {
	int a = 1;
	if (a == 1) {
		  string s("lalaa");
		  throw s;
	}
}

int main() {
	while (1) {
		Sleep(2000);
		try {
			Exception();
		}
		catch(const exception& a){
			cout << "exception" << endl;
		}
		catch (...) {
			cout << "unknow exception" << endl;
		}
	}

	return 0;
}